/**
 * @author guocailee
 */
import Datepicker from './Datepicker'
import ErrorTemplate from './ErrorTemplate'
import Notification from './notification'
import Progressbar from './Progressbar'
import Modal from './Modal'
import Wizard from './Wizard'
import WizardStep from './WizardStep'
import zkHeader from './Header'
import zkFooter from './Footer'
import zkNav from './Nav'
import Tooltip from './tooltip'

const install = function (Vue) {
  if (install.installed) {
    return
  }

  Vue.component(Datepicker.name, Datepicker)
  Vue.component(ErrorTemplate.name, ErrorTemplate)
  Vue.component(Modal.name, Modal)
  Vue.component(Wizard.name, Wizard)
  Vue.component(WizardStep.name, WizardStep)
  Vue.component(zkHeader.name, zkHeader)
  Vue.component(zkNav.name, zkNav)
  Vue.component(zkFooter.name, zkFooter)
  Vue.component(Progressbar.name, Progressbar)
  Vue.component(Tooltip.name, Tooltip)
  Vue.prototype.$notify = Notification
}

/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
};

module.exports = {
  version: '1.0.0RC0',
  install,
  Datepicker,
  ErrorTemplate,
  Modal,
  Progressbar,
  Tooltip,
  Wizard,
  WizardStep,
  Notification,
  zkHeader,
  zkFooter,
  zkNav
}
